//
//  GeoDBCache.m
//  ioscacher
//
//  Created by 海洋 周 on 12-4-22.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GeoDBCache.h"

@interface GeoDBCache ()
@property (nonatomic, strong, readwrite) NSString *tableName;
@end

@implementation GeoDBCache

@synthesize tableName = _tableName; 

static __strong NSString *s_dbPath = nil;

+ (void)setDBPath:(NSString *)path
{
    if (s_dbPath != nil) {
        return;
    }
    s_dbPath = path;
}

- (id)initWithTableName:(NSString *)tableName
{
    self = [super init];
    if (self) {
        if (s_dbPath == nil) {
            s_dbPath = [NSHomeDirectory() stringByAppendingString:@"/Library/Cache/geocache.db"];
        }
        self.tableName = tableName;
        //TODO:
    }
    return self;
}
@end
